# 导包
from selenium import webdriver
from time import sleep

from selenium.webdriver.common.by import By

# 获取浏览器对象
driver = webdriver.Chrome()

# 打开 url
url = "file:///D:/python/python-selenium-learn/a02_元素定位方式/learn-files/注册A.html"
driver.get(url)

# 查找 电话 并输入内容 18611111111
driver.find_element(By.CLASS_NAME, "telA").send_keys("18611111111")

# 暂停3秒
sleep(3)

# 关闭浏览器驱动对象
driver.quit()
